<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var message = "hi";
        var booleanMessage = Boolean(message);
        alert(booleanMessage);//true
    </script>
</head>
<body>

</body>
</html>